package wyu.service.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@FeignClient("user-bar-provider")
public interface UserBarFeign {
    @GetMapping("/user_bar/getUserBarList")
    List<Integer> getUserBarList(@RequestParam("uName")String uname);
    @GetMapping("/user_bar/getUserBarRelevancy")
    boolean getUserBarRelevancy(@RequestParam("uName")String uName,
                                @RequestParam("barId")int barId);
    @GetMapping("/user_bar/getCount")
    int getCount(@RequestParam("barId") int barid);
}
